public class Board {
	private CPU cpu;
	private Memory me;
	private Usb[] usb = new Usb[2];

	public void get(CPU cpu) {
		this.cpu = cpu;
	}

	public void get(Memory me) {
		this.me = me;
	}

	public boolean plug(Usb usb) {
		for (int i = 0; i < this.usb.length; i++) {
			if (this.usb[i] == null) {
				this.usb[i] = usb;
				return true;
			}
		}
		return false;
	}

	public void show() {
		for (int i = 0; i < this.usb.length; i++) {
			if (this.usb[i] != null) {
				System.out.println(this.usb[i].service() + "\t"
						+ this.cpu.service() + "\t" + this.me.service());
			}
		}

	}
}
